<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title></title>
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/estilo.css" rel="stylesheet" type="text/css"/>
    </h:head>
    <h:body>
            <form action="j_spring_security_check" method="post">            	
            	<p:dialog header="#{i18n['nome.produto']}" widgetVar="dlg1" visible="true" width="330" resizable="false" draggable="false" closable="false">
            	<center>
                	<h:outputText value="#{i18n['login.mensagem']}" rendered="#{param.erro}" style="color: darkred"/>
            	</center>
                <h:panelGrid columns="2" cellpadding="5">
                    <h:outputLabel for="j_username" value="#{i18n['login.usuario']}" /> 
                    <p:inputText id="j_username" required="true"/>
                    <h:outputLabel for="j_password" value="#{i18n['login.senha']}" />
                    <p:password id="j_password" required="true" feedback="false"/>
                    <h:commandButton value="#{i18n['login.botao']}"/>
                </h:panelGrid>
                </p:dialog>
            </form>
    </h:body>
</html>